import request from '@/utils/request'

// 查询全量撞库包列表
export function listHitPackage(query) {
  return request({
    url: '/crmsys/hitPackage/list',
    method: 'get',
    params: query
  })
}

// 查询全量撞库包详细
export function getHitPackage(id) {
  return request({
    url: '/crmsys/hitPackage/' + id,
    method: 'get'
  })
}

// 新增全量撞库包
export function addHitPackage(data) {
  return request({
    url: '/crmsys/hitPackage',
    method: 'post',
    data: data
  })
}

// 修改全量撞库包
export function updateHitPackage(data) {
  return request({
    url: '/crmsys/hitPackage',
    method: 'put',
    data: data
  })
}

// 删除全量撞库包
export function delHitPackage(id) {
  return request({
    url: '/crmsys/hitPackage/' + id,
    method: 'delete'
  })
}
